package com.flyee.communicate.character{
	
	import com.flyee.communicate.Handler;
	import com.flyee.io.socket.command.down.CommandDown;
	import com.flyee.ro.commanddown.SkillScopeDown;
	import com.flyee.utils.Obsevable;
	
	import flash.geom.Point;

	public class SkillScopeHandler extends Obsevable implements Handler{
		
		public function SkillScopeHandler(){
			super();
		}
		
		public function process(cmd:CommandDown) : void{
			var command : SkillScopeDown = cmd as SkillScopeDown;
			
			setChanged();	        
	        notifyObsevers("executeSkill"
					        , command.sourceId
					        , new Point(parseFloat(command.targetX), parseFloat(command.targetY))
					        , parseInt(command.skillId)
					        , command.damage
					        , command.targets);
		}
		
	}
}